"""
@author: klues
@file: 列表.py
@time: 2024/5/26 09:51
"""

# lst = []
# print(type(lst))
# lst2 = list("abc")
# print(lst2)
# name = input()
# types = input()
#
# print("我叫{},我是{}".format(name, types))
# print("我叫{1},我是{0}".format(name, types))  # 反过来
# print(f"我叫{name},我是{types}")
# for i in name:
#     print(i)
#
# print( dir("abc"))
# "*".join(lst2)


# lst = [10, 2, 3, 5, 7, 6]
# nu = int(input("请输入一个整数:"))
#
# # for i in range(len(lst)):
# #     for j in range(i + 1, len(lst)):
# #         if lst[i] + lst[j] == nu:
# #             print(f"{lst[i]} + {lst[j]} = {nu},下标：{i},{j}")
# #             exit()
# #     if i == len(lst)-1:
# #         print("无")
# for i in range(len(lst)):
#     if nu-lst[i] in lst[i+1:]:
#         print(f"{lst[i]} + {nu-lst[i]} = {nu},下标：{i},{lst[i+1:].index(nu-lst[i])}")
#         break
# else:
#     print("无")
#
# 容器类型 list、tuple、dict、set、str
# list底层是数组加链表


# def push(whole,ra):
#     nu = 0
#     re = 1
#     while nu < 10:
#         if re == ra:
#             list(whole).remove(0)
wh = []
for i in range(30):
    wh.append(i)
print(wh)
nu = 0
ra = 1
re = []
while nu < 10:
    if ra == 8:
        re.append(wh[0])
        wh.pop(0)
        nu += 1
        ra = 0
    else:
        k = wh[0]
        wh.pop(0)
        wh.append(k)
    ra += 1

print(re)
